import java.awt.BorderLayout;
import java.awt.Font;

import javax.swing.BorderFactory;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;

public class DasPanel extends JPanel{
	 JTextArea t =  new JTextArea();
	 private Font font = new Font(Font.MONOSPACED, Font.PLAIN, 12 );
    public DasPanel(int nummer){
        this.setLayout(new BorderLayout(0, 0));
        this.setBorder(BorderFactory.createTitledBorder("Text " + nummer));
        this.add(new JLabel("Blabla " + nummer));
        t.setLineWrap(true);
        t.setFont(font);
        this.add(t);
        this.setSize(300, 400);
    }
    
    public void setText(String text){
    	t.setText(text);
    }
 
}